package org.huntaway.kernel.mode.state.imp;

import org.huntaway.kernel.mode.state.Person;
import org.huntaway.kernel.mode.state.Person2;
import org.huntaway.kernel.mode.state.model.MoodState;

public class Mad2 implements MoodState {
	Person2 p;

	public Mad2(Person2 p) {
		this.p = p;
	}

	@Override
	public void doSomething() {
		p.setiNum(p.getiNum()+3);
		System.out.println("I'm Mad");
	}

	@Override
	public void changeState() {
		p.setState(new Angry2(p));
		p.doSomething();
	}


}
